home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / rsxwdk2s.zip / RSXWDK / LIBSRC / SYSEMX / CHSIZE.C < prev    next >
C/C++ Source or Header  |  1994-10-17  |  222b  |  13 lines

  1. #include <sys/emx.h>
  2. #include <sys/doscalls.h>
  3.  
  4. int __chsize (int handle, long length)
  5. {
  6.     char buf[4];
  7.  
  8.     if (dos_lseek(handle, length, 0) != -1L)
  9.     return dos_write(handle, buf, 0);
  10.     else
  11.     return -1;
  12. }
  13.